<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
        
        // 封装函数：格式化日期

        // 2022-4-15 16:20:20  星期五

        // 分别获取年月日时分秒 星期

        // var res = `${y}-${m}-${d} ${hour}:${minute}:${second} `
        // return res 

    </script>
    
</body>
</html>